using System;
using OneDayModel.Interfaces;

namespace OneDayModel.PresentationLogic
{
    public interface IUploadPictureUI
    {
        event EventHandler<UploadPictureArgs> OnUploadPicture;
        void ShowError(string message);
    }

    public class UploadPictureArgs : EventArgs
    {
        private readonly string albumName;
        private readonly IUploadedFile uploadedFile;

        public UploadPictureArgs(string albumName, IUploadedFile uploadedFile)
        {
            this.albumName = albumName;
            this.uploadedFile = uploadedFile;
        }

        public string AlbumName
        {
            get { return albumName; }
        }

        public IUploadedFile UploadedFile
        {
            get { return uploadedFile; }
        }
    }
}